import request from '@/utils/request.js'
//展示帖子
export const postListService = (params)=> {
    return request.get('/forum/post',{params:params})
}
export const postAddService = (id)=> {
    return request.post('/forum/add/'+id)
}
//获取文章详情
export const postGetService = (id)=> {
    return request.get('/forum/post/'+id)
}
//添加评论
export const postAddCommentService = (forumComment)=> {
    return request.post('/forum/comment',forumComment)
}
//显示评论
export const postCommentListService = (postId)=> {
    return request.get('/forum/comment/'+postId)
}